package com.rem.springIocAnnotation.service;

import com.rem.springIocAnnotation.dao.UserDao;
import com.rem.springIocAnnotation.entity.User;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

/**
 * @author Rem
 * @date 2023/2/28
 */
@Service
public class UserServiceImpl implements UserService {

    @Inject
    private UserDao userDao;

    @Override
    public void saveUser(User user) {
        userDao.saveUser(user);

        UserServiceImpl userService = new UserServiceImpl();

    }
}
